<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./mui.js"></script>
    <style>
    .a{
        width:200px;
        height:300px;
        border:1px solid green;
        left:100px;
        top:100px;
    }
    .b{
        width:100px;
        height:100px;
        border:1px solid red;
        position: absolute;
        left:100px;
        top:100px;
    }
    </style>
</head>
<body>
    <input type="text" class="a">
    <div class="b"></div>
    <ul id="console">
        
    </ul>
    <script>
    function myConsole(str){
        var li = document.createElement('li');
        li.innerHTML = str;
        document.querySelector('#console').appendChild(li);
    }
    document.querySelector('.a').addEventListener('tap',function(){
        myConsole('aaa');
    })
    document.querySelector('.b').addEventListener('tap', function () {
            myConsole('bbb');
        })
    </script>
</body>
</html>